package org.jeecg.modules.system.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author <a href="https://github.com/lydaiq">lydaiq</a>
 * @description
 * @date 2024-04-18
 **/
@Data
@ApiModel("文件上传类")
public class FileUpload {

    @TableId
    private Integer id;

    @ApiModelProperty("文件名称")
    private String name;

    @ApiModelProperty("文件总大小")
    private Long totalSize;

    @ApiModelProperty("文件Md5值")
    private String md5;

    @ApiModelProperty("文件路径")
    private String path;

    @ApiModelProperty("分片数量")
    private Long chunkCount;

    @ApiModelProperty("分片大小")
    private Long chunkSize;

    @ApiModelProperty("当前分片号")
    private Long chunkNum;

    @ApiModelProperty("分片偏移值")
    private Long chunkOffset;

    @ApiModelProperty("是否上传完成(主要是是否合成了分片)")
    private Boolean finish;
}
